import request from '@/utils/request'

export function getInfo(data) {
  // 接口请求
  return request({
    url: `/point/event/${data}`,
    method: 'get'
  })
}
export function addPoint(data) {
  // 接口请求
  return request({
    url: `/point/event/add`,
    method: 'post',
    data: data
  })
}
export function removePointEvent(data) {
  // 接口请求
  return request({
    url: `/point/event/remove/${data}`,
    method: 'get'
  })
}
export function editPoint(data) {
  // 接口请求
  return request({
    url: `/point/event`,
    method: 'put',
    data: data
  })
}
// 查询患者列表
export function listPointAll() {
  return request({
    url: '/hospital/service/listAll',
    method: 'get',
  })
}

export function reducePoint(data) {
  return request({
    url: `/point/event/reduce`,
    method: 'post',
    data: data
  })
}

export function returnPoint(data) {
  return request({
    url: `/point/event/return`,
    method: 'post',
    data: data
  })
}

export function GetList(params) {
  return request({
    url: '/point/event/list',
    method: 'get',
    params: params
  })
}
